<?
	require_once '../inc/functions.php';
	require_once 'data.php';
	$section='Users';
	$result = GetAll();
?>

<!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Users</title>
    </head>
    
    <body>
		<? include("../inc/tabs.php"); ?>
        <h1>Contact Methods</h1>
        <a href="">Add</a>
        <table>
        	<tr>
            	<th>User</th>
            	<th>Value</th>
            </tr>
			<? while($rs = $result->fetch_assoc()){ ?>
            	<tr>
                	<td><?=$rs['User_id']?></td>
                    <td><?=$rs['Value']?></td>
                    <td>
                    	<a href="edit.php?id=<?=$rs['id']?>">Edit</a>
                        <a href="delete.php?id=<?=$rs['id']?>">Delete</a>
                        <a href="details.php?id=<?=$rs['id']?>">View</a>
                    </td>
                </tr>
            <? } ?>
        </table>
    </body>
</html>

<? //$conn->close(); ?>